/**
 * @component 告警类型或状态组件
 */
export const RenderWarningTag = defineComponent(
  (props) => {
    return () => {
      return props.render(props.warningInfo)
    }
  },
  {
    props: {
      warningInfo: {
        type: Object,
        default() {
          return {}
        },
      },
      render: {
        type: Function,
        default() {
          return () => {}
        },
      },
    },
  },
)
